PowerTCP Mail for .NET
Write(Byte[],Byte[],Byte[],Int32,Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > SegmentedStream Class > Write Method : Write(Byte[],Byte[],Byte[],Int32,Int32) Method




buffer
The storage location of the data.
originalSequence
The sequence to find.
replacementSequence
The sequence to replace.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes from buffer that should be processed using the byte replacement desired.
Write data to the stream while carrying out a bytewise find/replace.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Write( _
   ByVal buffer() As Byte, _
   ByVal originalSequence() As Byte, _
   ByVal replacementSequence() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As SegmentedStream
Dim buffer() As Byte
Dim originalSequence() As Byte
Dim replacementSequence() As Byte
Dim offset As Integer
Dim count As Integer
 
instance.Write(buffer, originalSequence, replacementSequence, offset, count)
C# 
public void Write( 
   byte[] buffer,
   byte[] originalSequence,
   byte[] replacementSequence,
   int offset,
   int count
)
Managed Extensions for C++ 
public: void Write( 
   byte[]* buffer,
   byte[]* originalSequence,
   byte[]* replacementSequence,
   int offset,
   int count
) 
C++/CLI 
public:
void Write( 
   array<byte>^ buffer,
   array<byte>^ originalSequence,
   array<byte>^ replacementSequence,
   int offset,
   int count
) 

Parameters

buffer
The storage location of the data.
originalSequence
The sequence to find.
replacementSequence
The sequence to replace.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes from buffer that should be processed using the byte replacement desired.

Remarks

Carries out a bytewise find/replace of all occurrences found in buffer of originalSequence with replacementSequence. This method is useful for performing simple encoding of data before sending.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.